package com.example.s11jpa.repository;

import com.example.s11jpa.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @auther Qiang
 * @date 2022/4/6 11:44
 */

public interface UserRepository extends JpaRepository<User,Long>
{

    // 按照jpa的格式写，自动生成相应的查询
    public List<User> findByUserNameOrEmail(String username,String email);
}
